#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"
void Test1() {
	SqList La;
	SqList Lb;
	SqList Lc;
 	InitList(&La);
	InitList(&Lb);
	InitList(&Lc);
	int i, n, e;
	scanf("%d", &n);
	for (i = 1; i <= n; i++) {
		scanf("%d", &e);
		ListInsert_Sq(&La, i, e);
	}
	PrintList(&La);
	//scanf("%d", &i);
	//ListDelete_Sq(&La, i, e);
	//PrintList(&La);
	//scanf("%d", &e);
	//int ret = Location_Sq(&La, e);
	//printf("%d\n", ret);
	//ReverseList(&La);
	//PrintList(&La);
	printf("***************\n");
	scanf("%d", &n);
	for (i = 1; i <= n; i++) {
		scanf("%d", &e);
		ListInsert_Sq(&Lb, i, e);
	}
	PrintList(&Lb);
	printf("***************\n");
	int ret = MergeList(La, Lb, &Lc);
	PrintList(&Lc);
}


int main() 
{
	Test1();
	return 0;
}